<%--
  Created by IntelliJ IDEA.
  User: 86156
  Date: 2024/12/18
  Time: 20:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <table width="600" border="1" cellpadding="0" cellspacing="0" align="center">
      <tr>
          <td>编号</td>
          <td>姓名</td>
          <td>工作</td>
          <td>薪资</td>
          <td>部门号</td>
          <td>部门名称</td>
          <td>操作</td>
      </tr>
      <c:forEach items="${requestScope.list}" var="e">
      <tr>
             <td>${e.empId}</td>
             <td>${e.empName}</td>
             <td>${e.empJob}</td>
             <td>${e.empSalary}</td>
             <td>${e.did}</td>
             <%--<td><img src="${emp.empHead}" width="50"/></td>--%>
             <td>${e.dept.deptName}</td>
             <td>
                 <a href="/emp/delete?id=${e.empId}">删除</a>
                 <a href="/emp/update?id=${e.empId}">修改</a>
             </td>
      </tr>
      </c:forEach>
  </table>
</body>
</html>
